package com.styles.codingstylemybatisgenerator.entity;

import java.util.ArrayList;
import java.util.List;

public class AccountExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AccountExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAccountIdIsNull() {
            addCriterion("account_id is null");
            return (Criteria) this;
        }

        public Criteria andAccountIdIsNotNull() {
            addCriterion("account_id is not null");
            return (Criteria) this;
        }

        public Criteria andAccountIdEqualTo(Long value) {
            addCriterion("account_id =", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdNotEqualTo(Long value) {
            addCriterion("account_id <>", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdGreaterThan(Long value) {
            addCriterion("account_id >", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdGreaterThanOrEqualTo(Long value) {
            addCriterion("account_id >=", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdLessThan(Long value) {
            addCriterion("account_id <", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdLessThanOrEqualTo(Long value) {
            addCriterion("account_id <=", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdIn(List<Long> values) {
            addCriterion("account_id in", values, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdNotIn(List<Long> values) {
            addCriterion("account_id not in", values, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdBetween(Long value1, Long value2) {
            addCriterion("account_id between", value1, value2, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdNotBetween(Long value1, Long value2) {
            addCriterion("account_id not between", value1, value2, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountCreateTimeIsNull() {
            addCriterion("account_create_time is null");
            return (Criteria) this;
        }

        public Criteria andAccountCreateTimeIsNotNull() {
            addCriterion("account_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andAccountCreateTimeEqualTo(Long value) {
            addCriterion("account_create_time =", value, "accountCreateTime");
            return (Criteria) this;
        }

        public Criteria andAccountCreateTimeNotEqualTo(Long value) {
            addCriterion("account_create_time <>", value, "accountCreateTime");
            return (Criteria) this;
        }

        public Criteria andAccountCreateTimeGreaterThan(Long value) {
            addCriterion("account_create_time >", value, "accountCreateTime");
            return (Criteria) this;
        }

        public Criteria andAccountCreateTimeGreaterThanOrEqualTo(Long value) {
            addCriterion("account_create_time >=", value, "accountCreateTime");
            return (Criteria) this;
        }

        public Criteria andAccountCreateTimeLessThan(Long value) {
            addCriterion("account_create_time <", value, "accountCreateTime");
            return (Criteria) this;
        }

        public Criteria andAccountCreateTimeLessThanOrEqualTo(Long value) {
            addCriterion("account_create_time <=", value, "accountCreateTime");
            return (Criteria) this;
        }

        public Criteria andAccountCreateTimeIn(List<Long> values) {
            addCriterion("account_create_time in", values, "accountCreateTime");
            return (Criteria) this;
        }

        public Criteria andAccountCreateTimeNotIn(List<Long> values) {
            addCriterion("account_create_time not in", values, "accountCreateTime");
            return (Criteria) this;
        }

        public Criteria andAccountCreateTimeBetween(Long value1, Long value2) {
            addCriterion("account_create_time between", value1, value2, "accountCreateTime");
            return (Criteria) this;
        }

        public Criteria andAccountCreateTimeNotBetween(Long value1, Long value2) {
            addCriterion("account_create_time not between", value1, value2, "accountCreateTime");
            return (Criteria) this;
        }

        public Criteria andCashAccountIsNull() {
            addCriterion("cash_account is null");
            return (Criteria) this;
        }

        public Criteria andCashAccountIsNotNull() {
            addCriterion("cash_account is not null");
            return (Criteria) this;
        }

        public Criteria andCashAccountEqualTo(Integer value) {
            addCriterion("cash_account =", value, "cashAccount");
            return (Criteria) this;
        }

        public Criteria andCashAccountNotEqualTo(Integer value) {
            addCriterion("cash_account <>", value, "cashAccount");
            return (Criteria) this;
        }

        public Criteria andCashAccountGreaterThan(Integer value) {
            addCriterion("cash_account >", value, "cashAccount");
            return (Criteria) this;
        }

        public Criteria andCashAccountGreaterThanOrEqualTo(Integer value) {
            addCriterion("cash_account >=", value, "cashAccount");
            return (Criteria) this;
        }

        public Criteria andCashAccountLessThan(Integer value) {
            addCriterion("cash_account <", value, "cashAccount");
            return (Criteria) this;
        }

        public Criteria andCashAccountLessThanOrEqualTo(Integer value) {
            addCriterion("cash_account <=", value, "cashAccount");
            return (Criteria) this;
        }

        public Criteria andCashAccountIn(List<Integer> values) {
            addCriterion("cash_account in", values, "cashAccount");
            return (Criteria) this;
        }

        public Criteria andCashAccountNotIn(List<Integer> values) {
            addCriterion("cash_account not in", values, "cashAccount");
            return (Criteria) this;
        }

        public Criteria andCashAccountBetween(Integer value1, Integer value2) {
            addCriterion("cash_account between", value1, value2, "cashAccount");
            return (Criteria) this;
        }

        public Criteria andCashAccountNotBetween(Integer value1, Integer value2) {
            addCriterion("cash_account not between", value1, value2, "cashAccount");
            return (Criteria) this;
        }

        public Criteria andCountAccountIsNull() {
            addCriterion("count_account is null");
            return (Criteria) this;
        }

        public Criteria andCountAccountIsNotNull() {
            addCriterion("count_account is not null");
            return (Criteria) this;
        }

        public Criteria andCountAccountEqualTo(Integer value) {
            addCriterion("count_account =", value, "countAccount");
            return (Criteria) this;
        }

        public Criteria andCountAccountNotEqualTo(Integer value) {
            addCriterion("count_account <>", value, "countAccount");
            return (Criteria) this;
        }

        public Criteria andCountAccountGreaterThan(Integer value) {
            addCriterion("count_account >", value, "countAccount");
            return (Criteria) this;
        }

        public Criteria andCountAccountGreaterThanOrEqualTo(Integer value) {
            addCriterion("count_account >=", value, "countAccount");
            return (Criteria) this;
        }

        public Criteria andCountAccountLessThan(Integer value) {
            addCriterion("count_account <", value, "countAccount");
            return (Criteria) this;
        }

        public Criteria andCountAccountLessThanOrEqualTo(Integer value) {
            addCriterion("count_account <=", value, "countAccount");
            return (Criteria) this;
        }

        public Criteria andCountAccountIn(List<Integer> values) {
            addCriterion("count_account in", values, "countAccount");
            return (Criteria) this;
        }

        public Criteria andCountAccountNotIn(List<Integer> values) {
            addCriterion("count_account not in", values, "countAccount");
            return (Criteria) this;
        }

        public Criteria andCountAccountBetween(Integer value1, Integer value2) {
            addCriterion("count_account between", value1, value2, "countAccount");
            return (Criteria) this;
        }

        public Criteria andCountAccountNotBetween(Integer value1, Integer value2) {
            addCriterion("count_account not between", value1, value2, "countAccount");
            return (Criteria) this;
        }

        public Criteria andDiningCardIdIsNull() {
            addCriterion("dining_card_id is null");
            return (Criteria) this;
        }

        public Criteria andDiningCardIdIsNotNull() {
            addCriterion("dining_card_id is not null");
            return (Criteria) this;
        }

        public Criteria andDiningCardIdEqualTo(Long value) {
            addCriterion("dining_card_id =", value, "diningCardId");
            return (Criteria) this;
        }

        public Criteria andDiningCardIdNotEqualTo(Long value) {
            addCriterion("dining_card_id <>", value, "diningCardId");
            return (Criteria) this;
        }

        public Criteria andDiningCardIdGreaterThan(Long value) {
            addCriterion("dining_card_id >", value, "diningCardId");
            return (Criteria) this;
        }

        public Criteria andDiningCardIdGreaterThanOrEqualTo(Long value) {
            addCriterion("dining_card_id >=", value, "diningCardId");
            return (Criteria) this;
        }

        public Criteria andDiningCardIdLessThan(Long value) {
            addCriterion("dining_card_id <", value, "diningCardId");
            return (Criteria) this;
        }

        public Criteria andDiningCardIdLessThanOrEqualTo(Long value) {
            addCriterion("dining_card_id <=", value, "diningCardId");
            return (Criteria) this;
        }

        public Criteria andDiningCardIdIn(List<Long> values) {
            addCriterion("dining_card_id in", values, "diningCardId");
            return (Criteria) this;
        }

        public Criteria andDiningCardIdNotIn(List<Long> values) {
            addCriterion("dining_card_id not in", values, "diningCardId");
            return (Criteria) this;
        }

        public Criteria andDiningCardIdBetween(Long value1, Long value2) {
            addCriterion("dining_card_id between", value1, value2, "diningCardId");
            return (Criteria) this;
        }

        public Criteria andDiningCardIdNotBetween(Long value1, Long value2) {
            addCriterion("dining_card_id not between", value1, value2, "diningCardId");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelIdIsNull() {
            addCriterion("dining_personnel_id is null");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelIdIsNotNull() {
            addCriterion("dining_personnel_id is not null");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelIdEqualTo(Long value) {
            addCriterion("dining_personnel_id =", value, "diningPersonnelId");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelIdNotEqualTo(Long value) {
            addCriterion("dining_personnel_id <>", value, "diningPersonnelId");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelIdGreaterThan(Long value) {
            addCriterion("dining_personnel_id >", value, "diningPersonnelId");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelIdGreaterThanOrEqualTo(Long value) {
            addCriterion("dining_personnel_id >=", value, "diningPersonnelId");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelIdLessThan(Long value) {
            addCriterion("dining_personnel_id <", value, "diningPersonnelId");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelIdLessThanOrEqualTo(Long value) {
            addCriterion("dining_personnel_id <=", value, "diningPersonnelId");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelIdIn(List<Long> values) {
            addCriterion("dining_personnel_id in", values, "diningPersonnelId");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelIdNotIn(List<Long> values) {
            addCriterion("dining_personnel_id not in", values, "diningPersonnelId");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelIdBetween(Long value1, Long value2) {
            addCriterion("dining_personnel_id between", value1, value2, "diningPersonnelId");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelIdNotBetween(Long value1, Long value2) {
            addCriterion("dining_personnel_id not between", value1, value2, "diningPersonnelId");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelNameIsNull() {
            addCriterion("dining_personnel_name is null");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelNameIsNotNull() {
            addCriterion("dining_personnel_name is not null");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelNameEqualTo(String value) {
            addCriterion("dining_personnel_name =", value, "diningPersonnelName");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelNameNotEqualTo(String value) {
            addCriterion("dining_personnel_name <>", value, "diningPersonnelName");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelNameGreaterThan(String value) {
            addCriterion("dining_personnel_name >", value, "diningPersonnelName");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelNameGreaterThanOrEqualTo(String value) {
            addCriterion("dining_personnel_name >=", value, "diningPersonnelName");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelNameLessThan(String value) {
            addCriterion("dining_personnel_name <", value, "diningPersonnelName");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelNameLessThanOrEqualTo(String value) {
            addCriterion("dining_personnel_name <=", value, "diningPersonnelName");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelNameLike(String value) {
            addCriterion("dining_personnel_name like", value, "diningPersonnelName");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelNameNotLike(String value) {
            addCriterion("dining_personnel_name not like", value, "diningPersonnelName");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelNameIn(List<String> values) {
            addCriterion("dining_personnel_name in", values, "diningPersonnelName");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelNameNotIn(List<String> values) {
            addCriterion("dining_personnel_name not in", values, "diningPersonnelName");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelNameBetween(String value1, String value2) {
            addCriterion("dining_personnel_name between", value1, value2, "diningPersonnelName");
            return (Criteria) this;
        }

        public Criteria andDiningPersonnelNameNotBetween(String value1, String value2) {
            addCriterion("dining_personnel_name not between", value1, value2, "diningPersonnelName");
            return (Criteria) this;
        }

        public Criteria andElectronicDiningCardIdIsNull() {
            addCriterion("electronic_dining_card_id is null");
            return (Criteria) this;
        }

        public Criteria andElectronicDiningCardIdIsNotNull() {
            addCriterion("electronic_dining_card_id is not null");
            return (Criteria) this;
        }

        public Criteria andElectronicDiningCardIdEqualTo(Long value) {
            addCriterion("electronic_dining_card_id =", value, "electronicDiningCardId");
            return (Criteria) this;
        }

        public Criteria andElectronicDiningCardIdNotEqualTo(Long value) {
            addCriterion("electronic_dining_card_id <>", value, "electronicDiningCardId");
            return (Criteria) this;
        }

        public Criteria andElectronicDiningCardIdGreaterThan(Long value) {
            addCriterion("electronic_dining_card_id >", value, "electronicDiningCardId");
            return (Criteria) this;
        }

        public Criteria andElectronicDiningCardIdGreaterThanOrEqualTo(Long value) {
            addCriterion("electronic_dining_card_id >=", value, "electronicDiningCardId");
            return (Criteria) this;
        }

        public Criteria andElectronicDiningCardIdLessThan(Long value) {
            addCriterion("electronic_dining_card_id <", value, "electronicDiningCardId");
            return (Criteria) this;
        }

        public Criteria andElectronicDiningCardIdLessThanOrEqualTo(Long value) {
            addCriterion("electronic_dining_card_id <=", value, "electronicDiningCardId");
            return (Criteria) this;
        }

        public Criteria andElectronicDiningCardIdIn(List<Long> values) {
            addCriterion("electronic_dining_card_id in", values, "electronicDiningCardId");
            return (Criteria) this;
        }

        public Criteria andElectronicDiningCardIdNotIn(List<Long> values) {
            addCriterion("electronic_dining_card_id not in", values, "electronicDiningCardId");
            return (Criteria) this;
        }

        public Criteria andElectronicDiningCardIdBetween(Long value1, Long value2) {
            addCriterion("electronic_dining_card_id between", value1, value2, "electronicDiningCardId");
            return (Criteria) this;
        }

        public Criteria andElectronicDiningCardIdNotBetween(Long value1, Long value2) {
            addCriterion("electronic_dining_card_id not between", value1, value2, "electronicDiningCardId");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andSubsidyAccountIsNull() {
            addCriterion("subsidy_account is null");
            return (Criteria) this;
        }

        public Criteria andSubsidyAccountIsNotNull() {
            addCriterion("subsidy_account is not null");
            return (Criteria) this;
        }

        public Criteria andSubsidyAccountEqualTo(Integer value) {
            addCriterion("subsidy_account =", value, "subsidyAccount");
            return (Criteria) this;
        }

        public Criteria andSubsidyAccountNotEqualTo(Integer value) {
            addCriterion("subsidy_account <>", value, "subsidyAccount");
            return (Criteria) this;
        }

        public Criteria andSubsidyAccountGreaterThan(Integer value) {
            addCriterion("subsidy_account >", value, "subsidyAccount");
            return (Criteria) this;
        }

        public Criteria andSubsidyAccountGreaterThanOrEqualTo(Integer value) {
            addCriterion("subsidy_account >=", value, "subsidyAccount");
            return (Criteria) this;
        }

        public Criteria andSubsidyAccountLessThan(Integer value) {
            addCriterion("subsidy_account <", value, "subsidyAccount");
            return (Criteria) this;
        }

        public Criteria andSubsidyAccountLessThanOrEqualTo(Integer value) {
            addCriterion("subsidy_account <=", value, "subsidyAccount");
            return (Criteria) this;
        }

        public Criteria andSubsidyAccountIn(List<Integer> values) {
            addCriterion("subsidy_account in", values, "subsidyAccount");
            return (Criteria) this;
        }

        public Criteria andSubsidyAccountNotIn(List<Integer> values) {
            addCriterion("subsidy_account not in", values, "subsidyAccount");
            return (Criteria) this;
        }

        public Criteria andSubsidyAccountBetween(Integer value1, Integer value2) {
            addCriterion("subsidy_account between", value1, value2, "subsidyAccount");
            return (Criteria) this;
        }

        public Criteria andSubsidyAccountNotBetween(Integer value1, Integer value2) {
            addCriterion("subsidy_account not between", value1, value2, "subsidyAccount");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}